package com.thghh.resource;

/**
 * A resource storage that has a {@code getSize()} method for returning the current number of resource entries.
 * 
 * @since 2.3.21
 */
public interface CacheStorageWithGetSize extends CacheStorage {
    
    /**
     * Returns the current number of resource entries. This is intended to be used for monitoring. Note that depending on
     * the implementation, the cost of this operation is not necessary trivial, although calling it a few times per
     * minute should not be a problem.
     */
    int getSize();

}